<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Document</title>
</head>

<body>
	<script>
		var obj = {
			name: 'zs',
			say() {
				console.log(this)
			},

			run: function () {
				console.log(this)
			},
			eat: () => {
				console.log(this)
			},
			move: function () {
				setTimeout(function () {
					console.log(this)
					console.log('move')
				}, 1000)
			},
			move2: function () {
				setTimeout(() => {
					console.log(this)
					console.log('mov2')
				}, 1000)
			},
			move4: ()=> {
				setTimeout(() => {
					console.log(this)
					console.log('mov4')
				}, 1000)
			},

			move3: function (callback) {

			
	
				  console.log(1)
					setTimeout(callback,2000)
					return 1111
				

				
				

			}
		}
		  function cb(){
			  console.log(this)
			  console.log('回调函数执行了')
		  } 

		// obj.say()
		// obj.run()
		
		// obj.eat()
		// obj.move()

		// obj.move2()
		// obj.move4()

		 let res=	obj.move3(cb)
	console.log(res)
	


	</script>
</body>

</html>